/*
 * Funny Language - a free style programming language.
 * Copyright (C) 2015 by fanguangping (fanguangping@163.com)
 * vec.h
 */

#ifndef VEC_H_
#define VEC_H_

#include "../basic/ds.h"

DEFINE_OPERATOR( vector     );
DEFINE_OPERATOR( makevector );
DEFINE_OPERATOR( veclen     );
DEFINE_OPERATOR( vecref     );
DEFINE_OPERATOR( vecset     );
INIT_OPERATORS( vector );

Cell* make_vector(Scheme *sc, int len);
Cell* get_vector_item(Cell* vec, int index);
Cell* set_vector_item(Cell* vec, int index, Cell* a);
void fill_vector(Cell* vec, Cell* fill_obj);

#endif /* VEC_H_ */
